package com.dpndeveloper.snippets.db.example;

import java.sql.Connection;
import java.sql.SQLException;

import com.dpndeveloper.snippets.db.GenericDbUtil;

/**
 * @author Domenico Pio Novelli
 * 
 */
public class GenericDbExample {

	/**
	 * @param args
	 * @throws SQLException
	 */
	public static void main(String[] args) throws SQLException {
		Connection connection = GenericDbUtil.createConnection();
		if (connection != null) {
			System.out.println("Connected to: "
					+ connection.getMetaData().getURL());
			connection.close();
		}
	}
}
